package top.hanbing777.dao;

import org.apache.ibatis.annotations.Param;
import top.hanbing777.pojo.Books;

import java.util.List;

public interface BookMapper {

    //增加一本书
    int addBook(Books books);

    //删除一本书
    int deleteBookById(@Param("bookId") int id);

    //更新一本书
    int updateBook(Books books);

    //查询一本书
    Books queryBookById(@Param("bookId") int id);

    //查询全部的书
    List<Books> queryAllBook();

    //根据名字查书籍,模糊查询
    List<Books> queryBookByName(String bookName);

}
